import request from '@/utils/request'

/* 根据id查询供应商*/
export function supplier_detail(data) {
  return request({
    url: '/base-data/supplier/' + data,
    method: 'post'
  })
}

/* 列表分页*/
export function supplier_page(data) {
  return request({
    url: '/base-data/supplier/page',
    method: 'post',
    data: data
  })
}

/* 新增*/
export function supplier_save(data) {
  return request({
    url: '/base-data/supplier/save',
    method: 'post',
    data: data
  })
}

/* 修改*/
export function supplier_update(data) {
  return request({
    url: '/base-data/supplier/update',
    method: 'post',
    data: data
  })
}

/* 删除*/
export function supplier_delete(data) {
  return request({
    url: '/base-data/supplier/delete',
    method: 'post',
    data: data
  })
}

/* 查询所有供应商 */
export function supplier_list(data) {
  return request({
    url: '/base-data/supplier/list',
    method: 'post',
    data: data
  })
}
